package com.shoupolan.service;

import com.shoupolan.mapper.OrderMapper;
import com.shoupolan.pojo.Order;
import com.shoupolan.pojo.vo.OrderAddVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName:
 * @PackageName: com.shoupolan.service
 * @author: youjp
 * @create: 2019-08-14 21:56
 * @description:    TODO 订单管理业务层
 * @Version: 1.0
 */
@Service
@Transactional(rollbackFor = Throwable.class)
public class OrderService {
    private static final Logger LOGGER = LoggerFactory.getLogger(OrderService.class);

        @Autowired
        OrderMapper orderMapper;

    /**
     *
     * @param order
     */

    public void add(Order order){

            orderMapper.insertSelective(order);
        }



}
